import {addresslist} from "../../request/api.js"

const state = {
    list:[],
}

const mutations = {
    changelist(state,arr){
        state.list = arr
    }

}

const actions ={
    asynclist(context){
        addresslist({
            
        }).then(res=>{
            context.commit("changelist",res.data.list)
        })
    }
}

const getters = {
    list(state){
        return state.list
    }
}

export default{
    state,
    mutations,
    getters,
    actions,
    namespaced: true
}